/**
 * Created by CHENRI4 on 10/18/2016.
 */
Ext.define('sso.admin.user.view.UserMainView',{
    extend: 'Ext.container.Container',
    layout: 'fit',
    alias:'widget.UserMain',
    initComponent: function() {
        var me = this;
        me.height=Ext.getBody().getHeight();
        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'panel',
                    region: 'center',
                    bodyBorder: true,
                    bodyPadding: 4,
                    height: '100%',
                    layout: 'anchor',

                    items: [
                        {
                            xtype: 'panel',
                            autoScroll: false,
                            height: me.height-10,
                            layout: 'border',
                            border: false,
                            items: [
                                {
                                    xtype: 'UserSearchBarView',
                                    region: 'west',
                                },
                                {
                                    xtype:'panel',
                                    border: false,
                                    width:'98%',
                                    margin: '0 0 0 2',
                                    region: 'center',
                                    items:[
                                        {
                                            xtype: 'UserGrid',
                                        }
                                    ]

                                }
                            ]
                        }
                    ]
                }
            ]
        });
        me.callParent(arguments);
    }
})